<template>
  <div class="container">
    <div class="nav-box">
      <router-link to="/ajwlHuD" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB1CKFtX7WE3KVjSZSyXXXocXXa-70-61.png"
          alt
        >
        <p class="name">互动</p>
      </router-link>
      <router-link :to="{path:'/NewsHome2', query:{content_type:0}}" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB1.kRtX8OD3KVjSZFFXXcn9pXa-66-62.png"
          alt
        >
        <p class="name">学习</p>
      </router-link>
      <router-link to="/ActivityHome" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB1LsJtX8aE3KVjSZLeXXXsSFXa-66-66.png"
          alt
        >
        <p class="name">活动</p>
      </router-link>
      <div @click="openLink" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB17_JrX25G3KVjSZPxXXbI3XXa-57-57.png"
          alt
        >
        <p class="name">分享</p>
      </div>
      <router-link to="/EquityHome" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB15S0tX81D3KVjSZFyXXbuFpXa-59-58.png"
          alt
        >
        <p class="name">商城</p>
      </router-link>
      <!-- <div @click="openLink" class="icon-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB15S0tX81D3KVjSZFyXXbuFpXa-59-58.png"
          alt
        >
        <p class="name">商城</p>
      </div> -->
    </div>
    <div class="other-box">
      <router-link to="/Signin" class="content-box">
        <img
          class="img-box"
          src="https://gw.alicdn.com/tfs/TB1bdFyX8Cw3KVjSZFlXXcJkFXa-49-43.png"
          alt
        >
        <div class="tetx-box">
          <h2 class="name">签到</h2>
          <p class="tip">连续签到好礼换不停</p>
        </div>
      </router-link>
      <router-link to="/Medal" class="content-box">
        <img
          class="img-box2"
          src="https://gw.alicdn.com/tfs/TB15UptX9WD3KVjSZSgXXcCxVXa-35-49.png"
          alt
        >
        <div class="tetx-box">
          <h2 class="name">我的勋章</h2>
          <p class="tip">连续签到好礼换不停</p>
        </div>
      </router-link>
      <router-link to="/Ranking" class="content-box">
        <img
          class="img-box2"
          src="https://gw.alicdn.com/tfs/TB1gZFBXWSs3KVjSZPiXXcsiVXa-38-51.png"
          alt
        >
        <div class="tetx-box">
          <h2 class="name">排行榜</h2>
          <p class="tip">连续签到好礼换不停</p>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script>
import { article_listAllArticletype } from "@/api/article";
export default {
    data() {
    return {
      listQuery: {
        start:0,
        current: 1,
        limit: 8,
        company_id: localStorage.getItem("companyId") - 0
      },
      dataList: [],
      topicType: []
    };
  },
  methods: {
    openLink(e) {
        if(e ==1){
          window.location.href= 'http://humingwei.s3.natapp.cc/topicType?id=26&name=分享'
        }else if(e == 2){
           this.$router.push('/OrganizationHome')
        }else{
            this.$toast("敬请期待");
        }
    },
    async topic() {
      //获取话题
      let { data } = await article_listAllArticletype();
      if (data.status == 100) {
        this.topicType = data.data.rows;
      }
    },
  }
};
</script>

<style lang="scss" scoped>
.container {
  .nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    .icon-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 20px;
      width: 20%;
      .img-box {
        width: 32px;
        height: 32px;
      }
      .name {
        font-size: 14px;
        line-height: 14px;
        padding-top: 10px;
        color: rgb(51, 51, 51);
      }
    }
  }
  .other-box {
    display: flex;
    justify-content: space-between;
    padding: 7px;
    .content-box {
      width: 115px;
      background-color: #fff;
      border-radius: 4px;
      padding: 7px 0 7px 7px;
      display: flex;
      align-items: flex-end;
      .img-box {
        width: 22px;
        height: 22px;
      }
      .img-box2 {
        width: 21px;
        height: 27px;
      }
      .tetx-box {
        margin-left: 7px;
        .name {
          font-size: 12px;
          line-height: 12px;
        }
        .tip {
          color: #ccc;
          margin-top: 4px;
          font-size: 8px;
          line-height: 8px;
        }
      }
    }
  }
}
</style>

